import request from '@/utils/request'

// 查询心率列表
export function listRing_heart_rate(query) {
  return request({
    url: '/ring/ring_heart_rate/list',
    method: 'get',
    params: query
  })
}

// 查询心率详细
export function getRing_heart_rate(id) {
  return request({
    url: '/ring/ring_heart_rate/' + id,
    method: 'get'
  })
}

// 新增心率
export function addRing_heart_rate(data) {
  return request({
    url: '/ring/ring_heart_rate',
    method: 'post',
    data: data
  })
}

// 修改心率
export function updateRing_heart_rate(data) {
  return request({
    url: '/ring/ring_heart_rate',
    method: 'put',
    data: data
  })
}

// 删除心率
export function delRing_heart_rate(id) {
  return request({
    url: '/ring/ring_heart_rate/' + id,
    method: 'delete'
  })
}
